import {SET_GOODS,RESET,ADD_CAR,CLEAR_MY_CAR,DEL_THIS,CHANGE_THIS} from "../constant";  //引入定义常量

const initState = []

export default function shopCar(preState = initState,action){
    const {type,data} = action
    switch (type){
        case SET_GOODS:
            return data
        case RESET:
            return data
        case ADD_CAR:
            return data
        case CLEAR_MY_CAR:
            return data
        case DEL_THIS:
            return data
        case CHANGE_THIS:
            return data
        default:
            return preState
    }
}
